package com.chengyu.stock.service;


import com.chengyu.stock.pojo.domain.*;
import com.chengyu.stock.vo.resp.PageResult;
import com.chengyu.stock.vo.resp.R;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletResponse;
import javax.swing.*;
import java.util.List;
import java.util.Map;

public interface StockService {

    //获取国内大盘的最新交易数据
    R<List<InnerMarketDomain>> getNewestInnerMarketInfos();


    //获取板块交易数据
    R<List<StockBlockDomain>> getNewestSectorMarketInfos();

    //获取涨幅榜更多数据
    R<PageResult<StockUpdownDomain>> getNewestStockPageInfo(Integer page, Integer pageSize);

    //获取涨幅榜数据
    R<List<StockUpdownDomain>> getNewestStockIncreaseInfo();

    R<Map> getStockUpdownCount();

    void stockExport(HttpServletResponse response, Integer page, Integer pageSize);


    R<Map<String, List>> getStockMarketTradeCompare();

    R<Map<String, Object>> getLastDate4Stock();

    R<List<Stock4MinuteDomain>> getStockScreenTimeSharing(String code);

    R<List<Stock4EvrDayDomain>> getStockScreenEvrDaySharing(String code);

    R<List<StockOuterMarketDomain>> getStockOuterMarketInfos();

    R<List<Map>> searchStock(String searchStr);

    R<StockBusinessDomain> getStockDescribe(String code);

    R<List<Stock4EvrWeekDomain>> getWeekKLinData(String code);
}
